package com.litemall.order.api;

import com.litemall.order.pojo.Order;
import com.litemall.response.UserOrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author : Areli
 * @date : 2020/4/20 9:44
 */
@FeignClient("cloud-order")
@RequestMapping("order")
public interface OrderApi {
    @GetMapping("findUserOrder")
    public List<UserOrderDTO> findUserOrder(@RequestParam("username")String username);
}
